import { isEqual } from "lodash";
import Cookies from "js-cookie";

/**
 * 在cookie中添加值
 * @param key
 * @param token
 */
export function setCookies(key: string, token: string) {
	Cookies.set(key, token);
}

/**
 * 获取cookie中的值
 * @param key
 */
export function getCookies(key: string) {
	return Cookies.get(key);
}

/**
 * 删除cookie中的值
 * @param key
 */
export function removeCookies(key: string) {
	Cookies.remove(key);
}
